﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace InvoiceInvoker.Logic
{
	public partial class RegisteredCustomer
	{
		public Customer ToCustomer()
		{
			Customer customer = new Customer();
			customer.CustomerName = CustomerName;
			customer.CompanyName = CompanyName;
			customer.Street = Street;
			customer.City = City;
			customer.PostalCode = PostalCode;
			customer.Nip = Nip;

			return customer;
		}
	}
}
